package cn.cc.order.controller;

import cn.cc.order.service.bo.Order;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @program: smail-mi-cloud
 * @description: 订单监听
 * @author: Mr.WuChao
 * @create: 2021-07-26 10:53
 **/
@Component
@RabbitListener(queues = "order-dlx-queue")
public class OrderListener {
    @RabbitHandler
    public void getOrder(Order order) {
        System.out.println("接收"+order);
    }
}
